package com.yckj.lawyermanager.dongao.mapper;

import com.yckj.lawyermanager.dongao.entity.Lawyer;

import java.util.List;

/**
 * @author wanghonwgei
 * @version 1.0
 * @date 2023/1/4 21:32
 */

@Mapper
public interface LawyerMapper {
    /**
     * 修改律师
     * @param lawyer 律师对象，包含全部信息
     * @return 成功返回1，否则为0
     */
    public  int updateLawyer(Lawyer lawyer);
    /**
     * 查询律师
     * @param lawyerid 律师编号
     * @return 律师对象
     */
    public Lawyer selectLawyerById(int lawyerid);

    /**
     * 删除律师
     * @param lawyerid 律师编号
     * @return 成功返回1，否则为0
     */
    public int deleteLawyer(int lawyerid);
    /**
     * 查询所有律师
     * @return 律师集合
     */
    public List<Lawyer> selectLawyer();
    /**
     * 添加律师（创建律师档案
     * @param lawyer 律师档案
     * @return 成功返回1，否则为0
     */
    public int insertLawyer(Lawyer lawyer);
}
